package com.kws.commercial.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.kws.commercial.dao.CommercialContractTemplate;
import com.kws.commercial.dao.Info.QueryContractTemplatePageInfo;
import com.kws.commercial.dao.Rq.CreateContractTemplateRq;
import com.kws.commercial.dao.Rq.QueryContractTemplatePageRq;
import com.kws.commercial.dao.Rq.UpdateContractTemplateRq;
import org.springframework.web.multipart.MultipartFile;

public interface ContractTemplateService extends IService<CommercialContractTemplate> {
    PageInfo<QueryContractTemplatePageInfo> queryContractTemplatePage(QueryContractTemplatePageRq rq);

    boolean createContractTemplate(CreateContractTemplateRq rq);

    QueryContractTemplatePageInfo queryContractTemplateById(Long id);

    boolean updateContractTemplate(UpdateContractTemplateRq rq);

    boolean deleteContractTemplateById(Long id);

    String uploadContractTemplate(MultipartFile file);
}
